< previous page page_527 next page >

Page 527
e10a6a0a59f035e870d90cca05b85fce.gif
             x1 = CurvePoints(j).trans(1)
             y1 = CurvePoints(j).trans(2)
             z1 = CurvePoints(j).trans(3)
             m3ApplyFull _
                 CurvePoints(j).coord, _
                 Transformations(i).M, _
                 CurvePoints(j) .trans
             x2 = CurvePoints(j).trans(1)
             y2 = CurvePoints(j).trans(2)
             z2 = CurvePoints(j).trans(3)
             ' (x0, y0, z0) = previous point, new.
             ' (x1, y1, z1) = current point, old.
             ' (x2, y2, z2) = current point, new.
             ThePolyline.AddSegment x0, y0, z0, x2, y2, z2
             ThePolyline.AddSegment x1, y1, z1, x2, y2, z2
             x0 = x2
             y0 = y2
             z0 = z2
        Next j
    Next i
End Sub
Example program Trans, shown in Figure 14.38, demonstrates the Transformed3d class. Use the option buttons to pick a base curve and a set of transformations for the program to apply. Then click the Transform button to make the program display the corresponding surface. Use the arrow keys to change the viewing direction.
0527-01.jpg
Figure 14.38
Program Trans displaying a surface of transformation.

 
< previous page page_527 next page >